package com.cloudlibrary.service;

import com.cloudlibrary.domain.Book;
import com.cloudlibrary.domain.User;
import com.cloudlibrary.entity.PageResult;


public interface BookService  {
    PageResult selectBookById(Integer pageNum,Integer pageSize);

    Book findById(String id);
    Integer borrowBook(Book book);
    PageResult search(Book book,Integer pageNum,Integer pageSize);
    Integer addBook(Book book);
    Integer editBook(Book book);
    PageResult searchBorrowed(Book book, User user, Integer pageNum, Integer pageSize);
    boolean returnBook(String id,User user);
    Integer returnConfirm(String id);
}
